include ../default.mk

OBJS = main.o netlib.o nicdrv.o ntimer.o arp.o ni.o ip.o icmp.o ping.o

TARGET = net.a
DEPEND = .depend

COMMONDIR = ../../common

CFLAGS += -I..

.PHONY : all
all : $(TARGET)

$(TARGET) : $(OBJS)
	$(AR) cr $(TARGET) $(OBJS)
	$(RANLIB) $(TARGET)

.PHONY : depend
depend :
	@$(CC) $(CFLAGS) -M *.[csS] > $(DEPEND)
-include $(DEPEND)

.PHONY : clean
clean :
	rm -f $(OBJS) $(TARGET) $(DEPEND)
